import request from '@/utils/request'

// 查询看板基本信息列表
export function listKanban(query) {
  return request({
    url: '/order/kanban/list',
    method: 'get',
    params: query
  })
}

// 查询看板基本信息详细
export function getKanban(id) {
  return request({
    url: '/order/kanban/' + id,
    method: 'get'
  })
}

// 新增看板基本信息
export function addKanban(data) {
  return request({
    url: '/order/kanban',
    method: 'post',
    data: data
  })
}

// 修改看板
export function updateKanban(data) {
  return request({
    url: '/order/kanban',
    method: 'put',
    data: data
  })
}

// 删除看板基本信息
export function delKanban(id) {
  return request({
    url: '/order/kanban/' + id,
    method: 'delete'
  })
}

// 导出看板基本信息
export function exportKanban(query) {
  return request({
    url: '/order/kanban/export',
    method: 'get',
    params: query
  })
}
